package com.tgy.plus1.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.IdentityHashMap;

/**
 * (User)实体类
 *
 * @author
 * @since 2022-03-25 11:26:49
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 372358414117897259L;
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO )
    private Long id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 邮箱
     */
    private String email;

    @TableField(fill = FieldFill.INSERT)//value = ("create_time"),
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    @Version//乐观锁version注解
    private int version;

    @TableLogic//逻辑删除注解
    private Integer deleted;


}

